# reply to critique
class CreateReplies < ActiveRecord::Migration
  def self.up
    STDERR.puts "Creating replies table"
    create_table :replies do |t|
      t.column :user_id,        :integer
      t.column :critique_id,    :integer
      t.column :content,        :text
      t.column :created_at,     :datetime
      t.column :updated_at,     :datetime
      t.column :parent_id,      :integer
    end
  end

  def self.down
    STDERR.puts "Dropping replies table"
    drop_table :replies
  end
end
